package cn.xiaoyu.su.config;

public class WechatPayApi {

    /**
     * 微信支付主机地址
     */
    public static final String HOST = "https://api.mch.weixin.qq.com";

    /**
     * Native下单
     */
    public static final String NATIVE_ORDER = HOST + "/v3/pay/transactions/native";

    /**
     * Native查询订单，根据商户订单号查询
     */
    public static final String NATIVE_QUERY = HOST + "/v3/pay/transactions/out-trade-no/%s?mchid=%s";

    /**
     * Natvie关闭订单
     */
    public static final String NATIVE_CLOSE_ORDER = HOST + "/v3/pay/transactions/out-trade-no/%s/close";

    /**
     * Native退款
     */
    public static final String NATIVE_REFUND = HOST + "/v3/refund/domestic/refunds";

    /**
     * 退款状态查询接口
     */
    public static final String NATIVE_REFUND_STATE_QUERY = HOST + "/v3/refund/domestic/refunds/%s";
}
